<template>
	<c-pro button is_search :placeholder="tip"></c-pro>
</template>

<script>
	import CPro from '@/components/search'
	import { mapGetters } from 'vuex'
	export default {
		components: {
			CPro
		},
		computed: {
			...mapGetters(['shop']),
			tip () {
				if (this.shop.type === 5) {
					return '搜索产品'
				}
				return '搜索商家'
			}
		}
	}
</script>